﻿@{
    ViewBag.jiudianxinxi = "active";
    ViewBag.Title = "酒店信息";
    Layout = "~/Views/Shared/_layout_jiudian.cshtml";
}

<div class="sousuo">
    <div class="new_user"><button class="new_btn" onclick="to_url('/JiuDian/JDSubZhuCeView')"> 注册酒店</button></div>
</div>

<div class="tab_fill">
    <table class="tab_tb table table-stripped table-hover">
        <tr>
            <td class="top_bt ">酒店名称</td>
            <td class="top_bt ">未提交数</td>
            <td class="top_bt ">已提交数</td>
            <td class="top_bt ">已退回数</td>
            <td class="top_bt ">操作</td>
        </tr>
        <tr v-for="(item,index) in listj">
            <td>{{item.jd_name}}</td>
            <td>
                <strong class="text-success" style="cursor:pointer;" onclick="to_url('/JiuDian/JDDaiTianBao')">{{item.n_weitijiao}}</strong>
            </td>
            <td>
                <strong class="text-success" style="cursor:pointer;" onclick="to_url('/JiuDian/JDYiTianBao')">{{item.n_yitijiao}}</strong>
            </td>
            <td>
                <strong class="text-success" style="cursor:pointer;" onclick="to_url('/JiuDian/JDYiTianBao')">{{item.n_yituihui}}</strong>
            </td>
            <td>
                <button class="btn btn-primary btn-xs" v-on:click="JDInfoDetailShow(item.jdid)">查看</button>
            </td>
        </tr>

    </table>
</div>

<script>
    var vm = new Vue({
        el: '#app',
        data: {
            listj: [],
        },
        methods: {
            GetJDTongJiP: function () {
                $.post("/JiuDian/GetJDTongJiP", {}, function (res) {
                    vm.listj = res;
                })
            },
            JDInfoDetailShow: function (jdid) {
                to_url("/JiuDian/JDInfoDetailShow?jdid=" + jdid);
            }
        }
    })

    $(function () {
        vm.GetJDTongJiP();
    });
</script>
